import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class TopIconWidget extends StatefulWidget {
  final show;

  TopIconWidget({this.show});

  @override
  State<StatefulWidget> createState() {
    return _TopIconWidgetState();
  }
}

class _TopIconWidgetState extends State<TopIconWidget> {
  @override
  Widget build(BuildContext context) {
    if (true) {
      return Container(
        height: 220.h,
//        color: Colors.grey,
        child: Padding(
          padding: EdgeInsets.only(top: 60.h),
          child: Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: <Widget>[
              Container(
                margin: EdgeInsets.only(left: 40.h),
                height: 120.h,
                width: 800.w,
              ),
              InkWell(
                child: Icon(Icons.person),
                onTap: _person,
              ),

              Container(
                child: InkWell(child: Icon(Icons.settings), onTap: _settings,),
                margin: EdgeInsets.only(right: 20.w),
              ),
            ],
          ),
        ),
      );
    } else {
      return Container();
    }
  }

  void _person() {
    print("person");
  }

  void _settings() {
    print("settings");
  }
}
